package com.polytech.model;

import java.util.Date;
import java.util.List;

public class Topic {

	private int id;
	private String subject;
	private String text;
	private Date publicationDate;
	private Membre creator;
	private List<Post>posts;
	
	public Topic() {

	}
	
	public Topic(int id, String subject, String text, Date publicationDate) {
		super();
		this.id = id;
		this.subject = subject;
		this.text = text;
		this.publicationDate = publicationDate;
	}



	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Membre getCreator() {
		return creator;
	}

	public void setCreator(Membre creator) {
		this.creator = creator;
	}

	public List<Post> getPosts() {
		return posts;
	}

	public void setPosts(List<Post> posts) {
		this.posts = posts;
	}

	public int getId() {
		return id;
	}

	public Date getPublicationDate() {
		return publicationDate;
	}

	public void setPublicationDate(Date publicationDate) {
		this.publicationDate = publicationDate;
	}
	
	
}
